import request from "@/utils/request.js";

export function manage(data) {
	return request.post("/hash/manage", data);
}
export function getName(id,server,reload,thread,times) {
	return request.post("/hash/getName", {id,server,reload,thread,times});
}

export function getDesc(id) {
	return request.post("/hash/getDesc", {id});
}
export function getHash(id) {
	return request.post("/hash/get", {id});
}
export function reset(id) {
	return request.post("/hash/reset", {id});
}
export function createNew(id) {
	return request.post("/hash/createNew", {id});
}
export function save(id) {
	return request.post("/hash/save", {id});
}
export function confirm(data) {
	return request.post("/hash/confirm", data);
}
export function del(id) {
	return request.post("/hash/delete", {id});
}
export function search(data) {
	return request.post("/hash/search", data);
}
export function edit(data) {
	return request.post("/hash/edit", data);
}
export function official(data) {
	return request.post("/hash/official", data);
}
export function share(data) {
	return request.post("/hash/share", data);
}
export function getHashByCode(hash) {
	return request.post("/hash/get", {hash});
}
